package com.mark.tim.kutspel;

import android.graphics.Rect;

public class Enemy {

	private static final int ENEMY_WIDTH = 150;
	private static final int ENEMY_HEIGHT = 112;
	
	private int width = (int) (ENEMY_WIDTH * PlayView.getFactor());
	private int height = (int) (ENEMY_HEIGHT * PlayView.getFactor());
	
	private float speed;
	private Rect rect;
	private int HPleft;
		
	public Enemy(float speed, int x, int y, int HPleft) {
		this.speed = speed * PlayView.getFactor();
		this.HPleft = HPleft;
		rect = new Rect(x - width/2, y, width/2 + x, height + y);
	}
	
	public void setRect(Rect rect) {
		this.rect = rect;
	}
	
	public void setHPleft(int HPleft) {
		this.HPleft = HPleft;
	}
	
	public Rect getRect() {
		return rect;
	}
	
	public float getSpeed() {
		return speed;
	}
	
	public int getHPleft() {
		return HPleft;
	}
}
